package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctsi.core.database.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 登录日志
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:27
 */
@Data
@TableName("mars_sys_login_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "登录日志对象", description = "对象")
@JsonIgnoreProperties(ignoreUnknown = true)
public class LoginLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;


    /**
     * 日志状态
     */
    @ApiModelProperty(value = "日志状态")
    private String type;


    /**
     * 登录描述
     */
    @ApiModelProperty(value = "登录描述")
    private String description;


    /**
     * 浏览器全文
     */
    @ApiModelProperty(value = "浏览器全文")
    private String ua;


    /**
     * ip地址
     */
    @ApiModelProperty(value = "ip地址")
    private String ip;


    /**
     * 地区
     */
    @ApiModelProperty(value = "地区")
    private String location;


    /**
     * 浏览器
     */
    @ApiModelProperty(value = "浏览器")
    private String browser;


    /**
     * 操作系统
     */
    @ApiModelProperty(value = "操作系统")
    private String os;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    /**
     * 租户标识
     */
    @ApiModelProperty(value = "租户标识")
    private String tenantId;

}
